<div class="show-wrapper">
	<span style="float:left;"><h2>Showing Expense: <%=h @expense.name %></h2></span>
	<span style="float:right; margin-top: 12px;">
	<% if @user == @expense.user %><%= link_to image_tag('../images/silk/wrench.png', :class=>'icon') + " Edit", edit_expense_path(@expense), :class=>'icon-link' %> <%= link_to image_tag('../images/silk/delete.png', :class=>'icon') + " Delete", @expense, :confirm => 'Are you sure?', :method => :delete, :class=>'icon-link' %><% end %><%= link_to image_tag('../images/silk/arrow_left.png', :class=>'icon') + ' Back', url_for(:back), :class=> 'icon-link' %>
	</span>
	<div class="clear"></div>
	<p>Amount: <%=h number_to_currency(@expense.amount) %></p>
	<p>Date: <%=h format_date @expense.created_at %></p>
	<p>Expense Type: <%=h @pay_name %></p>
	<p>Parties Involved:<br/>
	<% if @expense.pay_id.to_s == "1" %>
		Everyone in the group
	<% else %>
		<% for p in @expense.party %>
			<% puts "THE PARTY IS" + p.to_s %>
			<%=h render_name(p.to_s) %> 
		<% end %>
	
	<% end %>
	</p>
	<p>Description:<br/>
	<%=h @expense.description %>
	</p>
</div>